Istio in Action by Rinor Maloku & Christian E. Posta

Istio in Action by Rinor Maloku & Christian E. Posta

Author:Rinor Maloku & Christian E. Posta [Rinor Maloku]
Language: eng
Format: epub
Publisher: Manning Publications
Published: 2022-04-07T00:00:00+00:00


Pulling a value from environment variables

Pulling a value from request headers

For example, to add a custom tag to our spans in the webapp service, we can annotate the Deployment resource of that workload with the following:

apiVersion: apps/v1 kind: Deployment ... spec: template: metadata: annotations: proxy.istio.io/config: | tracing: sampling: 100 customTags: custom_tag: literal: value: "Test Tag" zipkin: address: zipkin.istio-system:9411

We can apply this deployment of the webapp service like this:

$ kubectl apply \ -f ch8/webapp-deployment-zipkin-tag.yaml \ -n istioinaction

Sending traffic through the ingress gateway generates some of the traces we expect in the Jaeger UI:

$ curl -H "Host: webapp.istioinaction.io" \ http://localhost/api/catalog

Go to the Jaeger UI, find a recent trace, and click it. Then, click the span representing the webapp service, as shown in figure 8.11.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.